import smtplib
import email.mime.multipart import MIMEMultipart
import email.mime.text import MIMEText
import email.header import Header

def send_email(username, password, mail_server, sender, to_list, cc_list, subject, content, file_paths, port=587):
    message = MIMEMultipart()
    message['From'] = sender
    message['To'] = ','.join(to_list)
    message['Cc'] = ','.join(cc_list)
    message['Subject'] = Header(subject, 'utf-8')
    message.attach(MIMEText(content, 'html', 'utf-8'))
    for i in range(len(file_paths)):
        file_path = file_paths[i]
        attachment = MIMEApplication(open(file_path, 'rb').read())
        file_name = file_path[file_path.rfind('/')+1:]
        attachment.add_header('Content-Disposition', 'attachment', filename=file_name)
        message.attach(attachment)

    smt = smtplib.SMTP(mail_server, port)
    smt.starttls()
    smt.login(username, password)
    smt.sendmail(sender, to_list, message.as_string())
    smt.quit()